<template>
  <div>
    <div>
      <h2>嵌套路由</h2>
    <router-link to="/homePage">主页</router-link>|
    <router-link to="/news">新闻</router-link>|
    <router-link to="/sport">体育</router-link>
    </div>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style>
.head {
  width: 145px;
display: flex;
justify-content: space-between;
}
</style>